package com.ABdolphin.captcha.logger;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/logger")
public class LoggerController {
    public static Logger logger= LoggerFactory.getLogger(LoggerController.class);
    @RequestMapping("/logger1")
    public String logger(){
        logger.error("=========error=========");
        logger.warn("=========warn=========");
        logger.info("=========info=========");
        logger.debug("=========debug=========");
        logger.trace("=========trace=========");
        return "日志打印";
    }
}
